package cn.rkylin.oms.system.storage.dao;

import cn.rkylin.core.IDataBaseFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 仓库dao实现类
 * @author liming
 */
@Repository(value = "storDAO")
public class StorDAOImpl implements IStorDAO {
	
	/**
	 * 自定义baseDao 增删改查方法
	 */
	@Autowired
	protected IDataBaseFactory dao;

	@Override
	public List getStorListByPrjId(String prjId) throws Exception {
		Map<String, Object> params = new HashMap();
		params.put("projectId", prjId);
		return dao.findForList("findStorageByProjectId",params);
	}
}
